/**
 * 
 */
package org.gigi.core.web;

import java.util.List;

/**
 * 列表的Reponse返回值
 *
 * @author Eugene Wang 2011-8-30
 * @see
 */
public class ListResponse<T> extends BasicResponse {
	private static final long serialVersionUID = 1L;

	private List<T> data;

	/**
	 * 默认构造函数
	 */
	public ListResponse() {
		this(null, null);
	}

	/**
	 * 构造函数
	 * @param string
	 * @param roles
	 */
	public ListResponse(String msg, List<T> roles) {
		super(msg);
		setData(roles);
	}

	public List<T> getData() {
		return data;
	}
	public void setData(List<T> data) {
		this.data = data;
	}
}
